#include <iostream>
#include <fstream>
#include <vector>
#include "FileLoader.h"
#include "Evaluation.h"
using namespace std;

void FileLoader::Load( string filename ){
	ifstream fin( filename );
	vector< vector<int> > table;
	int jobNum, machineNum;
	string name;
	fin >> jobNum >> machineNum >> name;
	for( int i = 0 ; i < machineNum ; ++i ){
		vector<int> tempVector;
		table.push_back( tempVector );
		for( int j = 0 ; j < jobNum ; ++j ){
			int temp;
			fin >> temp;
			table[i].push_back(temp);
		}
	}
	Evaluation::Name = name;
	Evaluation::SetConfig( table );

	fin.close();
}